package com.zjcode.cdcer.enums;

import com.google.common.collect.Maps;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @Description 内镜诊断code
 * @Author bqyang
 * @Date 2024/4/26 17:55
 * @Version 1.0
 */
@NoArgsConstructor
@Getter
public enum DyeCodeEnum {

    DYE_ONE("0", "未染"),
    DYE_TWO("1", "碘染色"),

    DYE_THREE("2", "靛胭脂染色"),
    DYE_FOUR("3", "电子增强（包括NBI或FICE或iSCAN"),
    DYE_FIVE("4", "碘染色+靛胭脂染色"),
    DYE_SEX("5", "碘染色+电子增强"),
    DYE_SEVEN("6", "靛胭脂染色+电子增强"),
    DYE_EIGHT("7", "碘染色+靛胭脂染色+电子增强"),

    ;

    private String key;

    private String value;

    DyeCodeEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    private static final Map<String, DyeCodeEnum> MAP;

    static {
        MAP = Maps.newHashMapWithExpectedSize(10);
        for (DyeCodeEnum args : DyeCodeEnum.values()) {
            MAP.put(args.getKey(), args);
        }
    }


    public static String getValue(String key){
        return MAP.get(key).getValue();
    }
}
